package com.example.order.controller;
import com.example.order.feign.StockFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
@RefreshScope
public class OrderController {
    @Autowired
    private StockFeignService stockFeignService;
    @RequestMapping("/add")
    public String add(){
        return stockFeignService.reduce();
    }
}
